Link to this headingx86
Variable with instruction set from 1 byte to 15 bytes
Weird x86 instructions caviots https://www.timdbg.com/posts/useless-x86-trivia/
Link to this headingEmulate with Unicorn
=
# Unicorn emulator setup
=
= 0x00100000
= 0x00100000
# Position the stack pointer in the middle of the stack
= +
# Map the stack memory into the emulator
# Fill the stack memory with null bytes
# Set the stack pointer
= 0x00400000
= 0x00100000
# Map target memory with r/w/x permissions
# Fill the target memory with null bytes
# Write our code into the target memory
= +
=